<?php echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<?php include("include/header.php");?>
<card id="twitter" title="<?php echo $info['title'];?> | <?php echo $info['description']; ?>">
<a href="<?php echo $this->url('home'); ?>/twitter/<?php echo $user['name'];?>"><?php echo $user['nick'];?></a> | 
听众:<u><?php echo $user['fansnum'];?></u>.收听:<u><?php echo $user['idolnum'];?></u>.广播:<u><?php echo $user['tweetnum'];?></u><br/>
说明:<?php echo $user['introduction'];?><br/>
<?php
if(!empty($user['tag'])) {
	$a = array();
	foreach($user['tag'] as $tag){
		$a[] = $tag['name'];
	}
	echo '标签:'.implode(',', $a);
}
?><br/>
<?php echo $nav; ?><br/><br/>
<?php foreach($posts['info'] as $key => $post) { ?>
<?php if($key==0) {?>
-------------------<br/>
<?php } ?>
<?php echo $twitter->content_format($post, $posts['user']); ?> (<?php echo $twitter->date_format($post['timestamp']); ?> 来自<?php echo $post['from']; ?>)<br/>
-------------------<br/>
<?php } ?>
分页:<?php $twitter->twitter_pager(); ?><br/><br/>
【热闹话题】<br/>
<?php
foreach($topics['info'] as $topic) {
	echo '<a href="'.$this->url('home').'/twitter/k/'.$this->url_encode($topic['keywords']).'">';
	echo $topic['name'].'</a><br/>';
}?>

<p>
【搜索】<br/>
<input type="text" maxlength="10" emptyok="false" name="s" width="98%" />
<anchor>确定<go href="<?php echo $this->url('home'); ?>/" method="get"><postfield name="s" value="$s" /></go></anchor>
</p>
<?php include("include/footer.php");?>
</card>
</wml>